package com.three.work.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 张子艺
 * @packge com.xbxkj.admin.CountryPushController
 * @data 2019-09-02 16:15
 * @project DaTa-Show
 */
@Controller
@RequestMapping("/")
public class IndexController extends BaseController {


    /** 进入系统 登陆页  */
    @RequestMapping("/login.html")
    public String loginHtml(){
        return  "login";
    }
    /** 进入系统 首页  */
    @RequestMapping("/index.html")
    public String indexHtml(Model model){
        model.addAttribute("user",getUser());
       //rabbitTemplate.convertAndSend("report",getUser());

        return  "index";
    }
    /**  首页  iframe 主页*/
    @RequestMapping("/iframe.html")
    public String iframeHtml(){
        return  "iframe";
    }
}
